<style>
    input, textarea { border: 1px solid gainsboro; width: 100%; font-size: 14px }
    .info div { margin-top: 3px }
    .info input { height: 24px }
    .info textarea { height: 80px }
</style>
<div style="padding: 5px" id="mapUpdatePointContainer">
    <input name="infoId" value="" hidden/>
    <input name="pointType" value="" hidden/>
    <div>
        <div id="villageInfo" class="info" style="display: none">
            <div class="row cl">
                <div class="col-xs-12 col-sm-3"><span>村名</span></div>
                <div class="col-xs-12 col-sm-7"><input value=""/></div>
                <div class="col-xs-12 col-sm-2"><input id="villageQBtn" type="button" class="btn btn-primary  queryBtn btn btn-secondary" value="查 询"/></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-3"><span>主导产业</span></div>
                <div class="col-xs-12 col-sm-9"><textarea></textarea></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-3"><span>简介</span></div>
                <div class="col-xs-12 col-sm-9"><textarea></textarea></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-3"><span>总人口数</span></div>
                <div class="col-xs-12 col-sm-9"><input value=""/></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-3"><span>贫困户数</span></div>
                <div class="col-xs-12 col-sm-9"><input value=""/></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-3"><span>未脱贫户数</span></div>
                <div class="col-xs-12 col-sm-9"><input value=""/></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-3"><span>已脱户贫享受政策</span></div>
                <div class="col-xs-12 col-sm-9"><input value=""/></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-3"><span>外出务工人数</span></div>
                <div class="col-xs-12 col-sm-9"><input value=""/></div>
            </div>
        </div>
        <div id="companyInfo" class="info" style="display: none">
            <div class="row cl">
                <div class="col-xs-12 col-sm-2"><span>代码</span></div>
                <div class="col-xs-12 col-sm-10"><input name="company_dm" value="" readonly/></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-2"><span>名称</span></div>
                <div class="col-xs-12 col-sm-8"><input name="company_name" value="" readonly/></div>
                <div class="col-xs-12 col-sm-2"><input id="companyQBtn" type="button" class="btn btn-primary  queryBtn btn btn-secondary" value="查 询"/></div>

            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-2"><span>法人姓名</span></div>
                <div class="col-xs-12 col-sm-4"><input name="legal_person" value="" readonly/></div>
                <div class="col-xs-12 col-sm-2"><span>联系方式</span></div>
                <div class="col-xs-12 col-sm-4"><input name="tel" value="" readonly/></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-2"><span>经营项目</span></div>
                <div class="col-xs-12 col-sm-10"><textarea name="business_item" readonly></textarea></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-2"><span>员工总数</span></div>
                <div class="col-xs-12 col-sm-4"><input name="active_staff" value="" readonly/></div>
                <div class="col-xs-12 col-sm-2"><span>全职贫困户</span></div>
                <div class="col-xs-12 col-sm-4"><input name="qzpk" value="" readonly/></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-2"><span>临时贫困户</span></div>
                <div class="col-xs-12 col-sm-4"><input name="lspk" value="" readonly/></div>
                <div class="col-xs-12 col-sm-2"><span>投资总额</span></div>
                <div class="col-xs-12 col-sm-4"><input name="registered_fund" value="" readonly/></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-2"><span>链接</span></div>
                <div class="col-xs-12 col-sm-10"><a name="link" value="" readonly></a></div>
            </div>
            <div class="row cl">
                <div class="col-xs-12 col-sm-2"><span>企业介绍</span></div>
                <div class="col-xs-12 col-sm-10"><textarea name="company_profile" readonly></textarea></div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $.get("/povertyMap/mapPointInfo", {
            pointId: currentMarker.pointId,
            pointType: currentMarker.pointType
        }, function (rs) {
            if (currentMarker.pointType.indexOf('company') > -1) {
                $('#mapUpdatePointContainer #companyInfo').show();
                $('#mapUpdatePointContainer input[name="infoId"]').val(rs.id);//企业ID
                $('#mapUpdatePointContainer #companyInfo input[name="company_dm"]').val(rs.company_dm);//企业代码
                $('#mapUpdatePointContainer #companyInfo input[name="company_name"]').val(rs.company_name);//企业名称
                $('#mapUpdatePointContainer #companyInfo input[name="legal_person"]').val(rs.legal_person);//法人
                $('#mapUpdatePointContainer #companyInfo input[name="tel"]').val(rs.tel);//联系方式
                $('#mapUpdatePointContainer #companyInfo textarea[name="business_item"]').text(rs.business_item);//经营项目
                $('#mapUpdatePointContainer #companyInfo input[name="active_staff"]').val(rs.active_staff);//员工总数
                $('#mapUpdatePointContainer #companyInfo input[name="qzpk"]').val(rs.qzpk);//全职贫困户
                $('#mapUpdatePointContainer #companyInfo input[name="lspk"]').val(rs.lspk);//临时贫困户
                $('#mapUpdatePointContainer #companyInfo input[name="registered_fund"]').val(rs.registered_fund);//投资总额
                $('#mapUpdatePointContainer #companyInfo a[name="link"]').text(rs.link);//投资总额
                $('#mapUpdatePointContainer #companyInfo textarea[name="company_profile"]').text(rs.company_profile);//企业介绍
            }
        }, 'json');
    });
</script>